﻿// ------------------------------- 不再使用！！

#ifndef QGEOFILETILECACHECUSTOM_H
#define QGEOFILETILECACHECUSTOM_H

#include <private/qgeofiletilecache_p.h>

class QSqlDatabase;

class QGeoFileTileCacheCustom : public QGeoFileTileCache
{
    Q_OBJECT
public:
    QGeoFileTileCacheCustom(const QString& directory = QString(), QObject* parent = nullptr);
    ~QGeoFileTileCacheCustom() = default;

    QSharedPointer<QGeoTileTexture> get(const QGeoTileSpec& spec) override;

    void insert(const QGeoTileSpec& spec, const QByteArray& bytes, const QString& format,
                QAbstractGeoTileCache::CacheAreas areas = QAbstractGeoTileCache::AllCaches) override;

};

#endif // QGEOFILETILECACHECUSTOM_H
